home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1641 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  988 b 

  1. Path: news.umkc.edu!news
  2. From: jbestoriii@cctr.umkc.edu (John Bestor)
  3. Newsgroups: comp.lang.c++
  4. Subject: system() function question
  5. Date: 11 Jan 1996 22:08:03 GMT
  6. Organization: UMKC
  7. Message-ID: <4d41o3$rrb@kasey.umkc.edu>
  8. NNTP-Posting-Host: slip52.umkc.edu
  9. X-Newsreader: WinVN 0.92.6+
  10.  
  11. Help!  I want to run an .avi file in a program I'm writing and I know 
  12. that I have to use the system() function.  I #include <stdlib.h> file
  13. because I know that the system() function is defined in that header file.
  14. When I compile the program it gives me an error.  It says
  15.  
  16. error C2065: 'system' : undeclared identifier
  17. error C2064: term does not evaluate to a function
  18.  CL returned error code 2.
  19.  
  20. In my book it gives the example of typing DIR.  In my C++ book it says to
  21. type  system("DIR"); to do this.  I adapted what they had to start the 
  22. .avi file.  I put  system("c:\\movies\\ufp_logo.avi");
  23.  
  24. What is wrong with this statement?  I have NO idea what I'm doing wrong.
  25. Please help!!!!!!!!  Thanks.
  26.